module BillsHelper

  def one_bill_users(bill)
    containers = Container.where(bill_id: bill.id).all
    users ||= []
    containers.each do |container|
      users << User.find(container.user_id)
    end
    users
  end
end
